/*!
 * \file nuAllocator.cpp
 * \brief Nude's allocator module.
 * \author Nus
 * \date 2008/02/16, 21:14
 */

#include "nuAllocator.h"

// Default constructor.
nuAllocator::nuAllocator()
    : mpNudeAlloc(NULL),
      mpResAlloc(NULL)
{
  // Use system allocator by default.
  mpNudeAlloc = nuNew Allocator;
  ASSERT_C(mpNudeAlloc != NULL);
  mpResAlloc = nuNew Allocator;
  ASSERT_C(mpResAlloc != NULL);
}

// Default destructor.
nuAllocator::~nuAllocator()
{
  SAFE_DELETE(mpNudeAlloc);
  SAFE_DELETE(mpResAlloc);
}
